package io.renren.common.utils;

/**
 * Redis所有Keys
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-07-18 19:51
 */
public class RedisKeys {

    public static String getSysConfigKey(String key){
        return "sys:config:" + key;
    }


    public static String getProductKey(String productNumber){
        return "product:"+productNumber;
    }

    public static  String getAddressKey(String addressCode){
        return "address:"+addressCode;
    }

    public static String getOrderKey(String orderNo){
        return "order:"+orderNo;
    }


    public static String getTemperatureRangKey(String code){
        return "temperatureRang:"+code;
    }

    public static  String getCustomerKey(String code){

        return "customer:"+code;
    }

    public static String getCustomerAddresskey(String customerCode){
        return "customer:address:"+ customerCode;
    }


    public static  String getDtAreaOmsMnemonicCodeKey(String code){
        return "dt-area:oms-mnemonic-code:"+code;
    }

    public static String getDtAreaProvince(String province){
        return "dt-area:province:"+province;
    }

    public static String getDtAreaCity(String city){
        return "dt-area:city:"+city;
    }
    public static String getDtAreaArea(String area){
        return "dt-area:area:"+area;
    }


    public static String getAddressPropertyDictionaryKey(String property){
        return "dictionary:address-property:"+property;
    }

    public static  String getProjectKey(String code){
        return "project:"+code;
    }








}
